<template>
  <div>
    <el-table :data="this.package">
      <el-table-column label="体检套餐图片" prop="s_cover" width="120px" align="center">
        <template slot-scope="scope">
        <img :src="scope.row.s_cover" alt="" width="60px" height="40px">
      </template> 
      </el-table-column>
      <el-table-column label="体检套餐标题" prop="s_title" align="center"></el-table-column>
      <el-table-column label="体检套餐内容" prop="s_details" width="120px" align="center" show-overflow-tooltip></el-table-column>
      <el-table-column label="体检套餐价格" prop="n_time" align="center">
        <template slot-scope="scope">
          {{scope.row.s_price}}元
        </template>
      </el-table-column>
      <el-table-column label="操作" width="180px" align="center">
        <template slot-scope="scope">
          <el-button size="small" type="success" icon="el-icon-check" circle></el-button>
        <el-button size="small" type="info" icon="el-icon-message" circle></el-button>
        <el-button
        @click="$router.push('/home/hospital-update/'+scope.row.h_id)"
        size="small" type="warning" icon="el-icon-edit" circle></el-button>
        <el-button
        @click="deleteItem(scope.row)"
         size="small" type="danger" icon="el-icon-delete" circle></el-button>
        </template>
      </el-table-column>
    </el-table>

  </div>
</template>

<script>
import httpApi from '@/http';
  export default {
    data() {
      return {
        package:[]
      }
    },
    methods: {
      queryAll() {
        httpApi.packageApi.queryAll().then(res =>{
          console.log('体检套餐',res);
          this.package = res.data.data
        })
      }
    },
    mounted(){
      this.queryAll()
    }
  }
</script>

<style lang="scss" scoped>

</style>